﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyTicket_order.aspx.cs"
    Inherits="Joyintech.Web.inpiao365.UserCenter.MyTicket_order" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>我的订单--影票365 </title>
    <link rel="stylesheet" type="text/css" href="/wangp/Skin/wangpiao/info/css/common.css" />
    <link rel="stylesheet" type="text/css" href="usercss/users.css" />
    <link rel="stylesheet" type="text/css" href="/css/jquery.autocomplete.css" />
    <link href="/Exchange/css/ka-css.css" type="text/css" rel="stylesheet" />
    <link href="/css/pagination.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/js/jquery.js"></script>
    <script type="text/javascript" src="/js/jquery.pagination_yp.js"></script>
    <script type="text/javascript" src="/js/jquery.autocompletesearch.js"></script>
    <script src="/js/TimeLeft.js" type="text/javascript"></script>
    <script type="text/javascript">
        var CurrentPage = 1, RecordCount = 0;
        $(document).ready(function () {

            $("#allpay").hide();

            $(".tt").studyplay_djs();

            var url = window.location.href; //获取完整URL   
            var tmp = new Array(); //临时变量，保存分割字符串   
            tmp = url.split("/"); //按照"/"分割   
            var pp = tmp[tmp.length - 1]; //获取最后一部分，即文件名和参数   
            tmp = pp.split("?gerenka="); //把参数和文件名分割开   
            if (tmp[1] == 'dd') {
                ordersort(2)
            }
        })

        function ordersort(cs) {
            $("#ordeguid>li").each(function (i) {
                $(this).removeClass("onuser");
                if (i == cs - 1) {
                    $(this).addClass("onuser");
                }
            })
            if (cs == 1) {
                $("#Pagination").hide();
                $("#unpay").show();
                $("#showmessage").show();
                $("#tbsub").show();

                $("#allpay").hide();
                //$("#allpay").html("正在载入数据，请稍后......").load("/UserCenter/MyTicket_OrderNew.aspx").show();
                return;
            }
            if (cs == 2) {
                $("#unpay").hide();
                $("#showmessage").show();
                $("#tbsub").show();
                $("#tbECode").hide();
                $("#ecodePay").hide();
                $("#allpay").show();
                $("#Pagination").show();
                bindOrdersortlist();
                return;
            }


        }
        function closemessage() {
            $("#showmessage").hide();
        }

        //分页回调函数
        function pageselectCallback(page_id, jq) {
            CurrentPage = page_id + 1;
            bindOrdersortlist();
        }

        function bindOrdersortlist() {
            $("#allpay").html("正在载入数据，请稍后......").load("/UserCenter/MyTicket_OrderSorts.aspx?currentpage=" + CurrentPage, function (data) {
                var itemData = data.split('┞');
                if (RecordCount == 0) {
                    RecordCount = itemData[0];
                    $("#Pagination").pagination(RecordCount, {
                        items_per_page: 10,
                        first_text: "首页",
                        prev_text: "上一页",
                        next_text: "下一页",
                        last_text: "尾页",
                        ellipse_text: "...",
                        num_edge_entries: 1,
                        num_display_entries: 5,
                        show_input_button: true,
                        callback: pageselectCallback
                    }).show();
                }
                $("#allpay").html(itemData[1]);
            });
        }
    </script>
    <link rel="stylesheet" type="text/css" href="/wangp/Skin/wangpiao/newinfo/css/base.css" />
    <script src="/js/headyin.js" type="text/javascript" charset="utf-8"></script>
    <script src="/js/headliu.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" type="text/css" href="/css/xzbase.css" />
    <div id="topmenu" class="newtopmenu">
        <div id="site-nav">
        </div>
    </div>
    <script type="text/javascript">
        $(document).ready(function () {

            $("#citysel").load("/city.html");
            $("#site-nav").html('<img src="/Buyticket/images/loading1.gif" style="width: 16px; height: 16px" /> 数据正在加载......').load("/UserCenter/Cms_IsLogin.aspx");

        });
 
    </script>
</head>
<body>
    <form id="form1" runat="server">
  <div class="newmain">
    <div class="newhead">
    	<div class="newheadmenu">
            <h1><a href="http://www.inpiao365.com/" class="logoimg" title="影票365您的观影专家">影票365您的观影专家</a></h1>
            <!--城市start-->
            <div id="cityall" class="cityall fl">
                <h2 id="h2city">合肥</h2>
                <div id="morecity" class="morecity">
                    <span>[切换城市]</span>
                    <div id="citysel" class="citysel none">
                       </div>
                </div>
          </div>
          <!--城市end-->
          <div class="headr fr">
                    <!--<img src="images/topbanner.gif" alt="" />-->
                    <h4>
                        快速购票</h4>
                    <div class="headrA" id="selmovielch">
                        1.请选择影片<br />
                        <span class="sel_quickA" id="kchfilmname">请选择<b></b></span>
                        <div class="topsel-movieB" id="moviesearchnew">
                            <div id="kfilm">
                            </div>
                        </div>
                    </div>
                    <div class="headrB" id="selcinemalch">
                        2.请选择影院<br />
                        <span class="sel_quickB" id="kchcinemaname">请选择<b></b></span>
                        <div class="topsel-movieB" id="cinemasearchnew">
                            <ul id="kcinema">
                            </ul>
                        </div>
                    </div>
                    <div class="headrC" id="seltimelch">
                        3.请选择场次<br />
                        <span class="sel_quickC" id="kchshowname">请选择<b></b></span>
                        <div class="topsel-movieC" id="ktimesearchnew">
                            <ul id="kshow">
                                <label id="noteid">
                                    请先选择影院和影片</label>
                            </ul>
                        </div>
                    </div>
                </div>
        </div>
         #parse("../include/menu.html") 
    </div>
</div>
    <div id="main01" class="main">
        <div class="inmain">
            <!--当前导航位置-->
            <p class="brank">
                您当前的位置：<a href="#">我的影票365</a>&nbsp;&gt;&nbsp;我的订单
            </p>
            <!--主题内容begin-->
            <div class="mybox">
                <!--左边begin-->
                <div class="myleft left">
                    <div id="MyTicketLeft1_pnlmycenter">
                        <div class="mycenter">
                            <h2>
                                我的影票365</h2>
                            <ul class="mycenter-nav myorder">
                                <li><a href="/UserCenter/MyTicket_w.aspx" class="
                    ct01">我的帐户</a> </li>
                                <li><a href="/UserCenter/MyTicket_order.aspx" class="
                    ct02  navon">我的订单</a> </li>
                                <li><a href="/UserCenter/MyUser_Saveinfo.aspx" class="
                    ct12">安全设置</a> </li>
                                <li><a href="/UserCenter/MyHappy_PersonInfo.aspx" class="
                    ct13">个人资料</a> </li>
                            </ul>
                        </div>
                    </div>
                </div>
                <!--右边begin-->
                <div class="recordright right">
                    <div class="userallbar">
                        <ul id="ordeguid">
                            <li class="onuser"><a href="javascript:ordersort(1)">影票订单</a></li>
                            <li><a href="javascript:ordersort(2)">全部订单</a></li>
                        </ul>
                        <div class="clear">
                        </div>
                    </div>
                    <div class="user-main record-main">
                        <div class="tips" id="showmessage">
                            <span>提醒：凭手机收到的序号和验票码可到影院自助出票机打印影票，如未收到验票码可点击重发验票码到手机按钮，也可抄下序号和验票码到影院自助出票机验票。</span>
                            <span class="colorf30 buybarclose underline"><a href="javascript:closemessage()">关闭</a></span>
                        </div>
                        <table width="100%" cellspacing="1" id="tbsub" cellpadding="8" class="mt10 th-heig30 color333 tablepad8"
                            bgcolor="#ffffff">
                            <tr>
                                <th bgcolor="#f3f3f3" width="165">
                                    影片信息
                                </th>
                                <th bgcolor="#f3f3f3" width="98">
                                    影院信息
                                </th>
                                <th bgcolor="#f3f3f3" width="60">
                                    场次
                                </th>
                                <th bgcolor="#f3f3f3" width="50">
                                    座位
                                </th>
                                <th bgcolor="#f3f3f3" width="55">
                                    单价/票
                                </th>
                                <th bgcolor="#f3f3f3" width="55">
                                    支付方式
                                </th>
                                <th bgcolor="#f3f3f3" width="50">
                                    总金额
                                </th>
                                <th bgcolor="#f3f3f3">
                                    订单状态
                                </th>
                            </tr>
                        </table>
                        <div id="unpay">
                            <asp:Repeater ID="orderList" runat="server" ViewStateMode="Disabled" OnItemCommand="orderList_ItemCommand">
                                <ItemTemplate>
                                    <table width="100%" border="0" cellspacing="1" cellpadding="8" bgcolor="#e6e6e6"
                                        class="tablepad8 mt8">
                                        <tr>
                                            <td colspan="8" bgcolor="#ffff99">
                                                <span class="colorf30 left">您刚刚订购的电影票未支付完成</span><span class="right">限时支付： <span
                                                    class="colorf30 font14 tt">
                                                    <%#Eval("OrderTime")%></span></span></td>
                                        </tr>
                                        <tr bgcolor="#ffffff">
                                            <td width="165" valign="top" class="filminfo">
                                                <dl>
                                                    <dd>
                                                        <a href="" target="_blank"><a id="MyOrderUnknow1_Repeater1_ctl00_FilmPicUrl" href="/wangp/25/13417.html"
                                                            style="display: inline-block; height: 66px; width: 48px;">
                                                            <img alt="" src='<%#Eval("RecMobile")%>' style="border-width: 0px;" /></a></dd>
                                                    <dt><span class="blue"><a id="MyOrderUnknow1_Repeater1_ctl00_FilmDescUrl" href="/wangp/25/13417.html"
                                                        style="display: inline-block; height: 66px; width: 48px;">
                                                        <%#Eval("MovieName")%></a></span><br />
                                                    </dt>
                                                </dl>
                                            </td>
                                            <td width="98">
                                                <%#Eval("TheaterName")%>
                                            </td>
                                            <td width="60">
                                                <%#Eval("MovieSeatTime")%>
                                            </td>
                                            <td width="50">
                                                <span id="SeatList">
                                                    <%#Eval("MovieSeatId")%></span></td>
                                            <td width="55">
                                                <span id="OnePrice">
                                                    <%#Eval("Price")%></span>元</td>
                                            <td width="55" align="center">
                                                111<%--<%#Eval("paytype")%>--%></td>
                                            <td width="50" align="center">
                                                <b>
                                                    <%#Eval("Price")%>元 </b></td>
                                            <td align="center">
                                                <span class="underline colorf60">
                                                    <%#Eval("OrderState")%>
                                                </span></td>
                                        </tr>
                                        <tr>
                                            <td colspan="8" height="25" align="right" bgcolor="#ffffff">
                                                <div class="right ml10">
                                                    <a id="releaseTicket" href='Myticket_userseat_release.aspx?id=<%#Eval("orderid") %>&lsh=<%#Eval("MovieId")%>&yyh=<%#Eval("TheaterId")%>&yth=<%#Eval("TheaterRoomId")%>&cc=<%#Eval("ScreeningsId")%>'
                                                        target="_blank">
                                                        <img alt="" src="/UserCenter/images/reselect.gif" style="border-width: 0px;" /></a>
                                                </div>
                                                <div class="right">
                                                    <a id="MyOrderUnknow1_Repeater1_ctl00_RepayHl" href="#"
                                                        target="_blank">
                                                        <img alt="" src="/UserCenter/images/zhifu.gif" style="border-width: 0px;" /></a></div>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:Repeater>
                        </div>
                        <div id="allpay">
                        </div>
                        <!--这里是分页效果，直接把网站上的拿过来用-->
                        <div id="Pagination" class="pagination" style="display: none">
                        </div>
                    </div>
                </div>
                <!--右边end-->
                <div class="clear">
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
    </div>
    <div id="circle_bt">
        <div class="cb">
        </div>
    </div>
    </form>
    #parse("../include/Footer.html")
